import logging
import time

log = logging


def exception_fox():
    for i in range(1, 10):
        print("i===", i)
        log.debug(" the current env  ", "ee")
        if i == 3:
            raise Exception("测试抛出有异常")

    print("3333")


def print_w():
    print("11111111111111111111111111111")


if __name__ == '__main__':
    try:
        ee = exception_fox()
    except Exception as ex:
        print("有异常", ex)
    print(ee)
    print(time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time.time())))
    print_w()
